package com.linln.modules.service.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author : pengliang
 * @version V1.0
 * @Project: timo
 * @Package com.linln.modules.service.domain
 * @Descriptio /**
 * @Project: timo
 * @Package com.linln.modules.service.domain
 * @Description: TODO
 * @date Date : 2020年12月14日 15:36
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tbl_service")
public class Service {
    @TableId(value = "service_id", type = IdType.UUID)
    private String serviceId;

    /**
     * 服务名称
     */
    @TableField(value = "service_name")
    private String serviceName;

    /**
     * 服务类型
     */
    @TableField(value = "service_type",exist = false)
    private String serviceType;

    @TableField(value = "service_type_id")
    private String serviceTypeId;
    /**
     * 价格
     */
    @TableField(value = "price")
    private String price;

    /**
     * 积分
     */
    @TableField(value = "integral")
    private String integral;

    /**
     * 扩展字段
     */
    @TableField(value = "service_properties")
    private String serviceProperties;

    /**
     * 服务内容
     */
    @TableField(value = "service_content")
    private String serviceContent;

    /**
     * 是否预约
     */
    @TableField(value = "is_reservation")
    private String isReservation;

    /**
     * 购买须知
     */
    @TableField(value = "purchase_notes")
    private String purchaseNotes;


    /**
     * 服务数量 可购买的数量 -1为无限
     */
    @TableField(value = "service_count")
    private Integer serviceCount;

    public static final String COL_SERVICE_ID = "service_id";

    public static final String COL_SERVICE_NAME = "service_name";

    public static final String COL_SERVICE_TYPE = "service_type";

    public static final String COL_PRICE = "price";

    public static final String COL_INTEGRAL = "integral";

    public static final String COL_SERVICE_PROPERTIES = "service_properties";

    public static final String COL_SERVICE_CONTENT = "service_content";

    public static final String COL_IS_RESERVATION = "is_reservation";

    public static final String COL_PURCHASE_NOTES = "purchase_notes";

    public static final String COL_SERVICE_COUNT = "service_count";
}
